* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
}

.container .navbar {
    width: 100%;
    height: 50px;
    background-color: black;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* Center items vertically */
    justify-content: center;
    /* Center items horizontally */
    position: relative;
    /* Allow for absolute positioning of the 'toRight' class */
}

.container .navbar a {
    display: inline-block;
    width: 80px;
    color: white;
    font-size: large;
    line-height: 50px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container .navbar a:hover {
    background-color: green;
    color: white;
}

.container .navbar a {
    padding: 0 15px;
    border-radius: 5px;
}

.container .navbar .login {
    margin-left: auto;
    /* Pushes the login link to the far right */
}

.container .navbar .toRight {
    margin-left: auto;
    position: absolute;
    right: 10px;
    /* Position 10px from the right edge */
    top: 50%;
    /* Vertically center the 'toRight' element */
    transform: translateY(-50%);
    /* Adjust for exact centering */
}

.container .part1 {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.container .part1 .left_desc {
    width: 50%;
    height: 600px;
    float: left;
    overflow: scroll;
}

.container .part1 .left_desc h3 {
    padding-top: 10px;
    padding-left: 10px;
}

.container .part1 .left_desc pre {
    padding-top: 10px;
    padding-left: 10px;
    font-size: medium;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.container .part1 .right_code {
    width: 50%;
    float: right;
}

.container .part1 .right_code .ace_editor {
    height: 600px;
}

.container .part2 {
    width: 100%;
    overflow: hidden;
}

.container .part2 .result {
    width: 300px;
    float: left;
}

.container .part2 {
    text-align: right;
    /* 确保按钮在容器内部靠右对齐 */
}

/* 共同的按钮基础样式 */
.container .part2 .btn {
    width: 120px;
    height: 50px;
    font-size: large;
    line-height: 50px;
    /* 垂直居中文字 */
    text-align: center;
    /* 水平居中文字 */
    border-radius: 5px;
    /* 圆角效果 */
    cursor: pointer;
    /* 鼠标悬停时显示手指图标 */
    display: inline-block;
    /* 使按钮水平排列 */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    /* 平滑过渡效果 */
}

/* 实现按钮 */
.container .part2 .btn-implement {
    width: 120px;
    height: 50px;
    border-radius: 8px;
    background-color: #fff;
    /* 白色背景 */
    color: #000;
    /* 黑色文字 */
    border: 2px solid #2662bb;
    /* 绿色边框 */
    margin-top: 10px;
    margin-right: 10px;
    /* 控制按钮之间的间距 */
}

.container .part2 .btn-implement:hover {
    background-color: #1a52a5;
    /* 悬停时背景变为绿色 */
    color: #fff;
    /* 文字变为白色 */
    border-color: #ffffff;
    /* 边框颜色不变 */
}

/* 提交按钮 */
.container .part2 .btn-submit {
    width: 120px;
    height: 50px;
    border-radius: 8px;
    background-color: #26bb9c;
    /* 绿色背景 */
    color: #fff;
    /* 白色文字 */
    border: none;
    /* 去掉边框 */
    margin-top: 10px;
}

.container .part2 .btn-submit:hover {
    background-color: #1a9a7d;
    /* 悬停时背景变为深绿色 */
}

.container .part2 .result {
    margin-top: 15px;
    margin-left: 15px;
}

.container .part2 .result pre {
    font-size: large;
}